
/* 时间预约页面样式 - 添加time-appoint前缀以确保样式唯一性 */

/* 页面容器 */
.time-appoint-page-container {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

/* 内容包装器 */
.time-appoint-content-wrapper {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 教练信息卡片 */
.time-appoint-coach-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-appoint-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-direction: row;
}

.time-appoint-coach-avatar-section {
  width: 125px;
  height: 125px;
  flex-shrink: 0;
}

.time-appoint-coach-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #f0f0f0;
}

.time-appoint-coach-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-appoint-coach-name-section {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.time-appoint-coach-name {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.time-appoint-coach-gender {
  font-size: 24px;
  color: #666;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 12px;
}

.time-appoint-coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.time-appoint-tag {
  padding: 4px 12px;
  background-color: #f0f0f0;
  border-radius: 12px;
  font-size: 24px;
  color: #666;
}

/* 日期选择 */
.time-appoint-date-selection {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-appoint-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10rpx;
}

.time-appoint-calendar-title {
  font-size: 28px;
  font-weight: bold;
  color: #1890ff;
}

/* 科目选择 */
.time-appoint-subject-selection {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-appoint-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.time-appoint-title-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-appoint-title-icon {
  width: 40px;
  height: 40px;
  color: #1890ff;
  margin-right: 4px;
  margin-top: 3px;
}

.time-appoint-title-text {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.time-appoint-subject-tabs {
  display: flex;
  gap: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.time-appoint-subject-tab {
  width: 120px;
  height: 60px;
  padding: 12px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 6px;
  font-size: 28px;
  color: #666;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-appoint-subject-tab.selected {
  background-color: #1890ff;
  color: #fff;
}

/* 时间段选择 */
.time-appoint-time-slots-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 田字格布局 - 使用grid实现响应式布局 */
.time-appoint-time-slots-grid, .time-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background-color: #fff;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  justify-content: center;
}

/* 每个时间段卡片样式 */
.time-appoint-time-slot {
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  min-height: 120px;
  justify-content: space-between;
  cursor: pointer;
}

/* 确保在微信小程序中能正确显示 */
.time-appoint-content-wrapper {
  width: 100%;
}

/* 状态文本颜色 */
.time-appoint-text-red-500 {
  color: #ff4d4f;
}

.time-appoint-text-blue-500 {
  color: #1890ff;
}

.time-appoint-text-yellow-500 {
  color: #faad14;
}

.time-appoint-text-green-500 {
  color: #52c41a;
}

/* 我的预约信息卡片 */
.time-appoint-my-appointment-card {
  background-color: #e6f7ff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #91d5ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.time-appoint-appointment-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.time-appoint-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 24px;
}

.time-appoint-info-label {
  color: #666;
  min-width: 40px;
}

.time-appoint-info-value {
  color: #333;
  font-weight: 500;
}

.time-appoint-alert-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.time-appoint-alert-title {
  font-size: 24px;
  font-weight: bold;
  color: #faad14;
  margin-bottom: 8px;
}

.time-appoint-alert-content {
  font-size: 24px;
  color: #faad14;
  line-height: 1.5;
}

.time-appoint-cancel-btn {
  width: 100%;
  height: 40px;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 24px;
}

/* 预约按钮区域 */
.time-appoint-appointment-buttons {
  margin-top: 24px;
  padding: 0 8px;
}

.time-appoint-appointment-button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.time-appoint-appointment-button {
  height: fit-content;
  padding: 20px;
  width: 90%;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 600;
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-appoint-appointment-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.time-appoint-appointment-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.time-appoint-appointment-button:hover::before {
  left: 100%;
}

.time-appoint-appointment-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-appoint-appointment-button.time-appoint-morning {
  background-color: #1890ff;
}

.time-appoint-appointment-button.time-appoint-morning:hover {
  background-color: #40a9ff;
}

.time-appoint-appointment-button.time-appoint-afternoon {
  background-color: #ff4d4f;
}

.time-appoint-appointment-button.time-appoint-afternoon:hover {
  background-color: #ff7875;
}

.time-appoint-appointment-button.time-appoint-all-day {
  background-color: #52c41a;
}

.time-appoint-appointment-button.time-appoint-all-day:hover {
  background-color: #73d13d;
}

/* 预约成功弹窗 */
.time-appoint-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.time-appoint-modal-content {
  background-color: #fff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  animation: time-appoint-modalSlideUp 0.3s ease-out forwards;
}

@keyframes time-appoint-modalSlideUp {
  to {
    transform: translateY(0);
  }
}

.time-appoint-success-icon-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6ffed;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.time-appoint-success-icon {
  width: 48px;
  height: 48px;
  color: #52c41a;
}

.time-appoint-success-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.time-appoint-success-subtext {
  font-size: 24px;
  color: #666;
  text-align: center;
}

.time-appoint-confirm-btn {
  width: 100%;
  height: 48px;
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 24px;
  font-weight: 500;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.time-appoint-confirm-btn:active {
  background-color: #40a9ff;
  transform: scale(0.98);
}

/* 底部提示 */
.time-appoint-bottom-tips {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(183, 235, 143, 0.2);
}

.time-appoint-tips-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.time-appoint-tip-icon {
  color: #52c41a;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.time-appoint-tip-text {
  font-size: 24px;
  color: #389e0d;
  line-height: 1.5;
  flex: 1;
}

/* 时间段状态样式 - 根据不同状态渲染不同颜色 */
.time-appoint-time-slot.unappointed {
  background-color: #e6f7ff;
  border: 2px solid #1890ff;
  box-shadow: 0 2px 12px rgba(24, 144, 255, 0.2);
}

.time-appoint-time-slot.unappointed:active {
  background-color: #bae7ff;
}

.time-appoint-time-slot.appointed {
  background-color: #f0f0f0;
  border: 1px solid #d9d9d9;
  opacity: 0.8;
}

.time-appoint-time-slot.my-appointed {
  background-color: #fff1f0;
  border: 2px solid #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.2);
}

.time-appoint-time-slot.closed {
  background-color: #f5f5f5;
  border: 1px solid #d9d9d9;
  opacity: 0.6;
}

.time-appoint-time-slot.rest {
  background-color: #fff7e6;
  border: 2px solid #faad14;
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.15);
}

/* 时间段内容样式 - 增强状态显示效果 */
.time-appoint-time-slot-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.time-appoint-time-text {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.time-appoint-my-time {
  color: #ff4d4f;
}

.time-appoint-star-icon, .time-appoint-sun-icon {
  color: #faad14;
  margin: 0 4px;
}

.time-appoint-time-slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 预约状态显示 */
.time-appoint-appoint-status {
  font-size: 22px;
  text-align: center;
  line-height: 1.4;
  padding: 4px 0;
}

.time-appoint-appoint-rest-status {
  color: #666;
}

.time-appoint-appoint-my-status {
  color: #ff4d4f;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
}

/* 状态文本颜色增强 */
.time-appoint-text-red-500 {
  color: #ff4d4f;
  font-weight: 600;
}

.time-appoint-text-blue-500 {
  color: #1890ff;
  font-weight: 600;
}

.time-appoint-text-yellow-500 {
  color: #faad14;
  font-weight: 600;
}

.time-appoint-text-green-500 {
  color: #52c41a;
  font-weight: 600;
}

/* 时间段展开/收起按钮容器样式 */
.time-appoint-time-slot-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 16px;
  width: 100%;
}

/* 展开/收起按钮样式 - 确保功能能够指挥对应的时间段田字格 */
.time-appoint-flex {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #e6f7ff;
  border-radius: 6px;
  border: 1px solid #e6f7ff;
  transition: all 0.3s ease;
}

.time-appoint-flex:active {
  background-color: #e6f7ff;
  border-color: #1890ff;
  transform: scale(0.98);
}

/* 图标和文本的间距 */
.time-appoint-flex .time-appoint-icon {
  margin-right: 8px;
}

/* 优化按钮中的文字样式 */
.time-appoint-flex Text {
  font-size: 24px;
  color: #1890ff;
  font-weight: 500;
}

/* 预约状态显示 */
.time-appoint-appoint-status {
  font-size: 22px;
  margin-top: 8px;
}

.time-appoint-appoint-rest-status {
  color: #666;
}

.time-appoint-appoint-my-status {
  color: #1890ff;
  font-size: 20px;
  line-height: 1.4;
}

/* 图标样式 */
.time-appoint-icon {
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

/* 悬浮和点击效果增强 */
.time-appoint-time-slot:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* 响应式优化 */
@media screen and (max-width: 320px) {
  .time-appoint-time-slot {
    width: calc(50% - 16px); /* 小屏幕保持2列布局 */
  }
}

/* 优化教练卡片样式 */
.time-appoint-coach-card {
  transition: all 0.3s ease;
}

.time-appoint-coach-card:active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 优化标签样式 */
.time-appoint-tag {
  font-size: 20px;
  padding: 4px 12px;
}

/* 确保在微信小程序中始终显示为4列的优化 */
.time-appoint-content-wrapper {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
